package com.yegs.jltqc.dao;

import com.yegs.jltqc.VO.OutCome;
import com.yegs.jltqc.VO.Quality;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface OutComeRepository extends JpaRepository<OutCome,Long> {

    Page<OutCome> findOutComeByName(String name, Pageable pageable);

    OutCome findFirstByIdIsAfter(Long id);

    OutCome findFirstByIdBeforeOrderByIdDesc(Long id);

    OutCome findFirstByOrderById();

    OutCome findFirstByOrderByIdDesc();


}
